from ai import AiConstant
from ai.utils import utils_file

OUTDIRPATH = AiConstant.OUTPUT_PATH + 'asr_pytorch/'
VOCAB_DIRPATH = OUTDIRPATH + 'vocab/'
PREHAND_DATA_DIRPATH = OUTDIRPATH + 'prehand_data/'
DATADIRPATH = AiConstant.DATA_PATH + 'asr_pytorch/data_thchs30/data/'
MODELSAVEPATH = OUTDIRPATH + 'models/'
for file in [OUTDIRPATH, DATADIRPATH, VOCAB_DIRPATH, PREHAND_DATA_DIRPATH,MODELSAVEPATH]:
    utils_file.makedir_for_file_or_dir(file)

logger = AiConstant.AI_LOGGER(AiConstant.LOG_PATH + 'asr_pytorch.log')


def get_logger():
    return logger
